'use strict';

var Model = require('../../config/models').baseModel;
var service = module.exports = {};

service.list = function(cb) {
  return Model.find(cb);
};

service.get = function(id, cb) {
  return Model.find({baseId: id}, cb);
};

service.add = function(obj, cb) {
  return Model.create(obj, cb);
};
